package org.travel.api.travel.dao.wmh.user;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.travel.api.travel.pojo.User;

public interface UserDao extends JpaRepository<User,Integer> {
    @Query("select u from User u where u.loginName =:loginName or u.phone = :phone")
    public User getLogin(@Param("loginName") String loginName, @Param("phone") String phone);
}
